Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML: Constrain <form>-specific elements to BodyContext #44

Merged
merged 1 commit into from
May 9, 2020

Conversation

JohnSundell
Copy link
Owner

This change moves the APIs for creating what can be seen as “form-specific” HTML elements (such as <input> and <fieldset>) from an extension constrained to HTML.FormContext to the main HTML.BodyContext instead. This enables such elements to be mixed and matched with other body elements, such as <div>.

While such elements might most often appear within forms, there’s nothing within the HTML spec that enforces that, so neither should Plot.

Thanks to @daveverwer for the test case code 🙌

This change moves the APIs for creating what can be seen as “form-specific”
HTML elements (such as `<input>` and `<fieldset>`) from an extension
constrained to `HTML.FormContext` to the main `HTML.BodyContext` instead.
This enables such elements to be mixed and matched with other body elements,
such as `<div>`.

While such elements might most often appear within forms, there’s nothing
within the HTML spec that enforces that, so neither should Plot.
@JohnSundell JohnSundell merged commit 61e8289 into master May 9, 2020
@JohnSundell JohnSundell deleted the form-body-nodes branch May 9, 2020 18:27
@daveverwer
Copy link
Contributor

This is 🎉, 🚀, 🙌, and ❤️.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants